html {
    height: 100%;
    font-family: "Helvetica Neue","Hiragino Sans GB","Microsoft YaHei","\9ED1\4F53",Arial,sans-serif;
    font-size: 14px;
}

a{
	text-decoration: none;
    color: inherit;
}

.chat_body{
	width: 100%;
	height: 80%;
	/*border: 1px solid red;*/
	
}

.chat_center{
	width: 50%;
	height: 100%;
	/*border: 1px solid black;*/
	margin: 0 auto;
	background: #F5F5F5;
}

/*聊天头部*/
.chat_header{
	width: 100%;
	height: 7.5%;
	background: black;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
}


.chat_header .name{
	font: 30px "宋体","Arial Narrow",HELVETICA;
}

/*发送消息给 ？？*/
.sendTO{
	width: 100%;
	height: 5%;
	border-bottom: 1px solid #DCDCDC;
	display: flex;
	align-items: center;
	
}

.sendTO span{
	color: blue;
	text-indent: 20px;
}

.sendTO .u_n{
	color: red;
}

/*聊天区域*/
.user{
	width: 100%;
	height: 61.5%;/*92.5% - 5%*/
	overflow-y: auto;
	/*border: 1px solid red;*/
	border-bottom: 1px  solid #DCDCDC;
	
}


/*用户信息*/
.message_box{
	width: 95%;
	/*border: 1px solid red;*/
	margin: 15px auto;
}

/*对方的头像*/
.mssage_box_pic{
	float: left;
    width: 39px;
    height: 39px;
    border: 1px solid #f5f5f5;
    cursor: pointer;
}

/*我的头像*/
.from_self .mssage_box_pic{
	float: right;
    width: 39px;
    height: 39px;
    border: 1px solid #f5f5f5;
    cursor: pointer;
}

/*时间*/
.message_box_time{
	margin: 5px 0 20px;
    text-align: center;
    color: #969696;
    font-size: 12px;
}

/*我的发送内容 p*/
.from_self .message_content_inner{
	background-color: #b1e37c;
    border-color: #b1e37c;
    text-align: left;
    text-align: left!important;
    color: #000;
}

.from_self #message_content{
	text-align: right;
}

/*发送内容 p*/
.message_content_inner{
	display: inline-block;
    position: relative;
    margin: 0 10px;
    padding: 7px 15px;
    vertical-align: middle;
    word-break: break-all;
    max-width: 420px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    background-color: #fff;
}

a img{
	border: 0;
}

/*内容为图片的效果*/
.message_box .message_content_inner img{
	max-width: 130px;
	max-height: 130px;
    vertical-align: middle;
    cursor: pointer;
    /*border: 1px solid red;*/
}


/*我的消息效果*/
.from_self .message_content_inner:before {
	position: absolute;
    width: 8px;
    height: 8px;
    background-color: #b1e37c;
    right: -5px;
    left: auto;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 1px solid #b1e37c;
}

/*对方的消息效果*/
.message_content_inner:before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #fff;
    left: -5px;
    top: 13px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 1px solid #dcdcdc;
    border-right: 1px solid transparent;
    border-top: 1px solid transparent;
}


/*输入和表情 */
.chat_edit{
	width: 100%;
	height: 26%;
	/*border: 1px solid red;*/
	position: relative;
}

.chat_edit_item{
	height: 22%;
    padding: 0 20px;
    /*border: 1px solid red;*/
}

.chat_edit_icons{
	display: inline-block;
    height: 100%;
    vertical-align: middle;
}


.chat_edit_icon{
	display: inline-block;
    margin: 10px 10px 0 0;
    width: 24px;
    height: 24px;
    background-color: #ccc;
    vertical-align: middle;
    cursor: pointer;
    
}

/*表情*/
.s_img{
	width: 60%;
	height: 70%;
	/*border: 1px solid red; */
	position: absolute;
	top: -140px;
	left: 0;
	overflow-y: auto;
	background: white;
	display: none;
}

.s_img .event_one{
	width: 10%;
	height: 25%;
	/*border: 1px solid black;*/
	float: left;
	
}

.s_img .event_one img{
	vertical-align: middle;
	display: block;
	border: none;
	margin: 0 auto;
}

/*输入*/
.chat_edit_input{
	height: 50%; /*70*/
    padding: 5px 20px;
    overflow: hidden;
    border-bottom: 1px solid #DCDCDC;
    /*border: 1px solid blue;*/
}

.chat_edit_input .send_message{
	
	width: 100%;
    height: 100%;
    resize: none;
    border: none;
    outline: none;
    line-height: 18px;
    background: #F5F5F5;
    font: 20px "宋体","Arial Narrow",HELVETICA;
}

/*按钮*/
.btn{
	position: absolute;
	bottom: 15px;
	right: 1px;
	width: 100px;
	font: 16px "宋体","Arial Narrow",HELVETICA;
}
